home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1736 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.2 KB

  1. Date: Thu, 21 Jul 1994 17:18:38 -0400
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: rgivan@cix.compulink.co.uk
  4. In-Reply-To: Roland Givan's message of Thu, 21 Jul 94 00:18 BST-1 <memo.716071@cix.compulink.co.uk>
  5. Subject: Rsconf problems under MiNT 1.10h6
  6.  
  7. >Date: Thu, 21 Jul 94 00:18 BST-1
  8. >From: rgivan@cix.compulink.co.uk (Roland Givan)
  9. >Reply-To: rgivan@cix.compulink.co.uk
  10. >
  11. >Thanks to everybody who pointed me in the right direction for h6 patches.
  12. >I have now successfully built a h6 MTOS kernel.
  13. >
  14. >All seems to work fine except Rsconf().
  15. >
  16. >I first noticed this when MODEM.CPX displayed rubbish instead of the baud
  17. >rate. Removing all ACCs and AUTO programs didn't help, So I tried the
  18. >following:
  19. >
  20. >#include <stdio.h>
  21. >#include <osbind.h>
  22. >
  23. >main()
  24. >{
  25. > printf("speed = %d\n",Rsconf(-2,0,0,0,0,0));
  26. > getchar();
  27. >}
  28. >
  29. >This was compiled under GCC 2.33 MiNT Libs PL44 (as was the kernel).
  30. >
  31. >Under h6 'speed' was random (large) numbers. Under h3 and TOS 2.06 'speed'
  32. >was correct.
  33. >
  34. >I also tried MODEM.CPX under h6 on a TOS 1.4 machine as well. It had
  35. >problems too.
  36. >
  37. >Any ideas anybody?
  38.  
  39. First of all, testing this without any auto folder programs is
  40. definitely a good idea...i know of at least one TOS patch that breaks
  41. Rsconf(-2, ...).
  42.  
  43. Also, i'm not sure if it matters, but you probably want to use -1
  44. instead of 0 for all the other parameters, as -1 means "do not
  45. change".  The -2 for bps-rate inquire may cause Rsconf() to ignore
  46. the rest of the args anyway, but  I'm not sure in which order the
  47. parameters are checked.
  48.  
  49. Next, make sure that both your MiNT kernel and the program calling
  50. Rsconf() have been compiled with the latest MiNT headers (The library
  51. version isn't so important here, but the osbind.h you compile with
  52. should be a recent one, as old ones had a bad Rsconf() binding.)
  53.  
  54. If none of that helps, let me know what TOS version you're
  55. running...the MiNT Rsconf() code is very version-dependent.  I tested
  56. Rsconf(-2, -1, -1, -1, -1, -1) on a TT with the latest TT TOS and an
  57. h6 kernel, and it gave perfectly reasonable results.
  58.  
  59. -entropy
  60.  
  61. --
  62. entropy -- it's not just a good idea, it's the second law.
  63. Personal mail:      entropy@gnu.ai.mit.edu
  64. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  65. "what do you have against octal?" -jrb
  66.  
  67.